package com.key.service;

import com.key.common.dto.ClearFormFindDTO;
import com.key.common.vo.ClearFormVO;
import com.key.entity.ClearForm;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.util.Map;

/**
 * @author wei
 * @create 2023-02-22 9:47
 */
public interface ClearFormService {

    /**
     * 添加清理报废单
     * @param clearForm
     * @return
     */
    boolean addClearForm(ClearForm clearForm);

    /**
     * 删除清理报废单
     * @param cfNo
     * @return
     */
    boolean removeClearForm(String cfNo);

    /**
     * 修改清理报废单
     * @param clearForm
     * @return
     */
    boolean editClearForm(ClearForm clearForm);

    /**
     * 查询清理报废清单
     * @param clearFormFindDTO
     * @return
     */
    Map<String, Object> findClearForm(ClearFormFindDTO clearFormFindDTO);

    /**
     * 根据单号查询报废清单的信息，以及清单下的资产
     * @param cfNo
     * @return
     */
    ClearFormVO findClearFormInfoByCfNo(String cfNo);

    HSSFWorkbook getWorkBook();
}
